package com.lzx.article.service;

import com.lzx.article.entity.SecondComments;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lzx.article.vo.NicknameVO;
import com.lzx.article.vo.OssVO;
import com.lzx.common.utils.R;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lzx
 * @since 2023-01-20
 */
public interface SecondCommentsService extends IService<SecondComments> {

    //保存二级回复
    R publishSecondComments(SecondComments secondComments);

    //根据文章id获取一级和二级评论
    R getFirstAndSecondComments(Long articleId);

    //修改用户头像(文章二级评论)
    String updateAvatarToSecondComments(OssVO ossVO);

    //修改用户昵称(文章二级评论)
    String updateNicknameToSecondComments(NicknameVO nicknameVO);
}
